<%@ page import="java.util.HashMap" %>
<%@ page import="utils.string.session.SessionStringUtil" %>
<%@ page import="vo.Equipment" %><%--
  Created by IntelliJ IDEA.
  User: Chris
  Date: 2021/5/10
  Time: 13:50
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
    <%
		int equipmentId = Integer.parseInt(request.getParameter("equipmentId"));
		HashMap allEquipments = (HashMap)session.getAttribute(SessionStringUtil.ALL_UNUSED_EQUIPMENTS);
		Equipment equipment = (Equipment) allEquipments.get(equipmentId);
	%>
欢迎更新设备：<%=equipment.getEquip_name()%>
<form action="servlet/UpdateEquipmentServlet" method="post">
    现有的设备数目:<%=equipment.getEquip_num()%><BR>
    <input name="equipmentId" type="hidden" value="<%=equipment.getEquip_id()%>">
    <input name="equipmentName" type="hidden"
           value="<%=equipment.getEquip_name()%>">
    所更改的设备数量:
    <input name="updateEquipmentNumber" type="number">
    <input type="submit" value="更新">
</form>
</body>
</html>
